package com.bruan.d6_interface2;

import com.bruan.d5_interface.B;
import com.bruan.d5_interface.D;
import com.sun.source.tree.BinaryTree;

public class Test {
    public static void main(String[] args) {
        Student s = new Student();
        Driver s1 = new A();
        Singer s2 = new A();

    }
}

class A extends Student implements Driver,Singer {
    @Override
    public void drive() {
        System.out.println("驾驶");
    }

    @Override
    public void sing() {
        System.out.println("唱歌");
    }
}

class Student{

}

interface Driver{
    void drive();
}

interface Singer{
    void sing();

}
